#include <iostream>
#include <string>
#include <list>
#include <algorithm>

using namespace std;

int main()
{
    list<string> ls{"hello", "World", "!", "!"};
    string word("hello");

    cout << count(ls.begin(), ls.end(), word) << endl;

    return 0;
}
